package com.talos.ums.controller.admin.usertenant.vo;

import com.talos.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.talos.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户租户表分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class UmsUserTenantPageReqVO extends PageParam {

    @Schema(description = "用户主键", example = "16062")
    private Long userId;

    @Schema(description = "租户主键", example = "5084")
    private Long tenantId;

    @Schema(description = "租户编码")
    private String tenantCode;

    @Schema(description = "租户名称", example = "赵六")
    private String tenantName;

    @Schema(description = "租赁开始时间")
    private LocalDateTime leaseBeginAt;

    @Schema(description = "租赁结束时间")
    private LocalDateTime leaseEndAt;

    @Schema(description = "禁用")
    private Integer disableFlag;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] modifyTime;

    @Schema(description = "创建人主键", example = "16405")
    private Long creatorId;

    @Schema(description = "创建人编码")
    private String creatorCode;

    @Schema(description = "创建人姓名", example = "王五")
    private String creatorName;

    @Schema(description = "更新人主键", example = "32532")
    private Long modifierId;

    @Schema(description = "更新人编码")
    private String modifierCode;

    @Schema(description = "更新人姓名", example = "张三")
    private String modifierName;

}
